package edu.zut.hb.ambition.medicinal.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import edu.zut.hb.ambition.base.domain.Column;
import edu.zut.hb.ambition.base.domain.BaseEntity;
public class Medicinal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Column(name = "drugid")
    private String drugid;

    @Column(name = "drugname")
    private String drugname;


    @Column(name = "unitname")
    private String unitname;


    @Column(name = "sellingprice")
    private BigDecimal sellingprice;


    @Column(name = "areaname")
    private String areaname;


    @Column(name = "typename")
    private String typename;

    public void setDrugid(Long drugid) 
    {
        this.drugid = drugid;
    }

    public Long getDrugid() 
    {
        return drugid;
    }
    public void setDrugname(String drugname) 
    {
        this.drugname = drugname;
    }

    public String getDrugname() 
    {
        return drugname;
    }
    public void setUnitname(String unitname) 
    {
        this.unitname = unitname;
    }

    public String getUnitname() 
    {
        return unitname;
    }
    public void setSellingprice(BigDecimal sellingprice) 
    {
        this.sellingprice = sellingprice;
    }

    public BigDecimal getSellingprice() 
    {
        return sellingprice;
    }
    public void setAreaname(String areaname) 
    {
        this.areaname = areaname;
    }

    public String getAreaname() 
    {
        return areaname;
    }
    public void setTypename(String typename) 
    {
        this.typename = typename;
    }

    public String getTypename() 
    {
        return typename;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugid", getDrugid())
            .append("drugname", getDrugname())
            .append("unitname", getUnitname())
            .append("sellingprice", getSellingprice())
            .append("areaname", getAreaname())
            .append("typename", getTypename())
            .toString();
    }
}
